<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!-- header -->
	<jsp:include page="../include/header.jsp"></jsp:include>
	<header id="header">	
	<!--header-->
	<jsp:include page="../include/header_top.jsp"></jsp:include>	
	<!--/header_top-->	
	<!--/header-middle-->
	<jsp:include page="../include/header_middle.jsp"></jsp:include>		
	<!--header-bottom-->
	<jsp:include page="../include/header_bottom.jsp"></jsp:include>	
	<!--/header-bottom-->	
	</header>	
<!--/header-->

<script type="text/javascript">
$(function(){
	var qnaboard_no = "";
	
	if(location.search){
		qnaboard_no = location.search.split("?")[1];
		qnaboard_no = qnaboard_no.split("=")[1];
	}
	else{
		location.href="/";
	}
	
	$.getJSON('BoardQnAlistDetailView_JSON',
			{qnaboard_no : qnaboard_no}, 
			function(qnaboardJsonArray){
				var html = ""; 
				
				html += "<table>";
				
				$.each(qnaboardJsonArray, function(index, qnaboardJson){
					html += "<tr>";
					html += "<td>게시물 번호</td>";
					html += "<td>" + qnaboardJson.qnaboard_no + "</td>";
					html += "</tr>";
					
					html += "<tr>";
					html += "<td>게시자 ID</td>";
					html += "<td>" + qnaboardJson.qnaboard_id + "</td>";
					html += "</tr>";
					
					html += "<tr>";
					html += "<td>게시자 Nickname</td>";
					html += "<td>" + qnaboardJson.qnaboard_nickname + "</td>";
					html += "</tr>";
					
					html += "<tr>";
					html += "<td>등록일</td>";
					html += "<td>" + qnaboardJson.qnaboard_date + "</td>";
					html += "</tr>";

					html += "<tr>";
					html += "<td>게시물 제목</td>";
					html += "<td>" + qnaboardJson.qnaboard_title + "</td>";
					html += "</tr>";
					
					html += "<tr>";
					html += "<td>게시물 내용</td>";
					html += "<td>" + qnaboardJson.qnaboard_content + "</td>";
					html += "</tr>";
					

				});
				
				html += "</table>";
				
				$('#boardQnA_info').html(html);
				
			});
	
	
	$.getJSON('BoardQnAReplylistDetailView_JSON',
			{qnaboard_no : qnaboard_no}, 
			function(qnaboardJsonArray){
				var html = ""; 
				
				html += "<table>";
				
				$.each(qnaboardJsonArray, function(index, qnaboardJson){
					html += "<tr>";
					html += "<td>게시물 번호</td>";
					html += "<td>" + qnaboardJson.qnaboard_reply_no + "</td>";
					html += "</tr>";
					
					html += "<tr>";
					html += "<td>게시자 ID</td>";
					html += "<td>" + qnaboardJson.qnaboard_reply_id + "</td>";
					html += "</tr>";
					
					html += "<tr>";
					html += "<td>게시자 Nickname</td>";
					html += "<td>" + qnaboardJson.qnaboard_reply_nickname + "</td>";
					html += "</tr>";
					
					html += "<tr>";
					html += "<td>등록일</td>";
					html += "<td>" + qnaboardJson.qnaboard_reply_date + "</td>";
					html += "</tr>";

					html += "<tr>";
					html += "<td>게시물 제목</td>";
					html += "<td>" + qnaboardJson.qnaboard_reply_title + "</td>";
					html += "</tr>";
					
					html += "<tr>";
					html += "<td>게시물 내용</td>";
					html += "<td>" + qnaboardJson.qnaboard_reply_content + "</td>";
					html += "</tr>";
					

				});
				
				html += "</table>";
				
				$('#boardQnA_reply').html(html);
				
			});
	
	
	

				
				
			}
		 );

</script>
<!--slider-->	
	<jsp:include page="../include/slider.jsp"></jsp:include>		
<!--/slider-->

<div id="boardQnA_info"></div>
<h2>댓 글 확 인 용 입 니 다</h2>
<div id="boardQnA_reply"></div>

<!--Footer-->
	<jsp:include page="../include/footer.jsp"></jsp:include>
<!--/Footer-->
